package com.atguigu.gmall.web;

import com.atguigu.gmall.common.anno.EnableFeignClientInterceptor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)     // 排除数据源的自动化配置
@EnableFeignClients(basePackages = {
        "com.atguigu.gmall.feign.product" ,
        "com.atguigu.gmall.feign.item" ,
        "com.atguigu.gmall.feign.search" ,
        "com.atguigu.gmall.feign.cart" ,
        "com.atguigu.gmall.feign.order" ,
        "com.atguigu.gmall.feign.seckill" ,
        "com.atguigu.gmall.feign.user"
})
@EnableFeignClientInterceptor
public class WebApplication {

    public static void main(String[] args) {
        SpringApplication.run(WebApplication.class , args) ;
    }

}
